package com.hn658.groupshare.core.dao.db.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.hn658.framework.dataaccess.mybatis.AbstractMyBatisDAO;
import com.hn658.groupshare.common.entity.UserInfoEO;
import com.hn658.groupshare.core.dao.db.IUserInfoDBDAO;

@Repository
public class UserInfoDBDAOImpl extends AbstractMyBatisDAO<UserInfoEO, Long> implements IUserInfoDBDAO{
	
	@Override
	public List<Long> selectUserIdByFunctionId(Long FunctionId) {
		return getSqlSession().selectList(this.getMapperNamespace()+".selectUserIdByFunctionId",FunctionId);
	}
	
	@Override
	public List<Long> selectUserIdByRoleId(Long roleId) {
		return getSqlSession().selectList(this.getMapperNamespace()+".selectUserIdByRoleId",roleId);
	}
	
}
